﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuaweiCloud.Dotnet.Samples.ESports.Common
{
    public static class DeviceTypeConst
    {
        public const string Band = "Band";
        public const string Watch = "Watch";

        private static List<string>? _types;
        private static readonly object locker = new();
        public static List<string> Types
        {
            get
            {
                if (_types == null)
                    lock (locker)
                    {
                        _types ??= new List<string>() { Band,Watch };
                    }
                return _types;
            }
        }
    }
}
